#ifndef __LCD_H__
#define __LCD_H__

extern unsigned long LCD_BASE;	

void lcd_write(int addr, unsigned val);

void lcd_set_window(unsigned x1, unsigned y1, unsigned x2, unsigned y2);
void lcd_set_color(unsigned color);
void lcd_set_circle(unsigned x1, unsigned y1);
void lcd_set_rect(unsigned x1, unsigned y1, unsigned x2, unsigned y2);
void lcd_start();
int lcd_busy();

#endif